log on to the PC side, I still have to register.
For this solution can be: micro-letter authorization after registration "mandatory" require users to fill out basic information, such as mobile phone number, Email. This way we can generate the user password for the PC-side login in some ways. For example, the user's nickname for the account, mobile phone number
To determine whether a mobile phone login or a PC loginfunction IsMobile () {If you have http_x_wap_profile, it must be a mobile device.if (Isset ($_server[' http_x_wap_profile '))return true;This article is excerpted from the TPM Smart Switch template engine for TPM developmentif (Isset ($_server[' http_client ')) ' phoneclient ' ==$_server[' http_client '])return true;If the VIA message contains a WAP, i
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn about the simple sample code for PC scan authorization login to php.
Applications are required first. Enterprises, individual industrial and commercial households, and media are required.
Address application https://open.weixin.qq.com/
The simplest php code for me
Start logging in
// ----
!!! He won't let it change!! Try the database I originally stored the path, because there are tables, see if I can do (I day, put is so messy, do not like me to put things in a mess!! ) Yes, just don't let it change! Can't change it? copy out rename paste back, give cover on!! How to change what you want to change! Tragedy (; ′д ') ゞmysql process is not open! Oh, well, maybe you can't use the space of the previous table, and then change back to the picture on the map, you can open it! So can no
PC-side micro-scan code registration and login
First, the preface
First of all, the focus of this article is to implement ideas, code and database design mainly to show ideas, if the code efficiency has a harsh requirements of the project should not be copied.
I believe that people who have been in the micro-credit development licensing This is not less done, but generally speaking, we are more to the mo
registration or logon on the PC end. (If you have not registered, you can directly log on to the PC ). Is it so easy? If you think the text is abstract, see the figure below
PC-side QR code Logon Process
Core code
After figuring out the ideas and procedures, let's go directly to the code. The development ideas are common, and the development languages should be
If we develop the instant communication system (IM System) to support the same account multi-device simultaneous login scene (or "multi-login"), that is, like QQ, in the PC-side login, but also can use the same account login mobile (iOS or Android), then, how to do it?In the
This article mainly introduced the PHPPC two-dimensional code landing Realization Idea, has certain reference value, the interested small partners may refer to
First, the idea:
The key idea is how to interact with the end, after all, the current login can only be on the end.
But there is a special way to generate a custom QR code, which allows us to display the QR code on the PC, and the value of the QR co
1.iPad install splashtop, register and login;
2.Splashtop Official website: http://www2.splashtop.com/zh-CN/, click on the top right corner of the page "Download Streamer", installed to complete;
3. Start PC end Splashtop, enter username and password in "status" account login
4. Start the ipad end Splashtop, the main interface, such as not displaying
In the past two days, the system has been reinstalled, Vs and MSSQL have also been reinstalled, and IIS has also been reinstalled (preferably consistent with the OS version ), configure a previous website, run not, prompt "server application unavailable", according to the solution provided by online users, http://www.cnblogs.com/lemontree/archive/2009/03/04/1403219.html
I don't know how to solve this problem. I also encountered a "PC-computer \ ASPne
You need a test app (AppID after the creation is complete)
Attach your own created application details, my appid is 101303571
Because your local project TX is inaccessible, the development testing phase needs to map your project to the public web, where a free penetration tool is recommended. URL http://natapp.cn/
Download the corresponding client decompression, go into the folder in the directory to open command prompt cmd
Ngrok-config ngrok.cfg-subdomain MyApp
keyword if (Preg_match ("/(") of the phone's browser from Http_user_agent. Implode (' | ', $clientkeywords). ")/I", Strtolower ($_server[' http_user_agent '))) {return true; }}//protocol method, because it may not be accurate, put to the Last Judgment if (Isset ($_server[' http_accept ')) {//If only WML is supported and HTML is not supported it must be a mobile device. If WML and HTML are supported but WML is before HTML the mobile device if ((Strpos ($_server[' http_accept '), '
', $template);In the end:Include template (' content ', ' index ', $default _style);To be replaced by:if ($this->ismobile ()) { include template (' Content_m ', ' index ', $default _style);} else{ include template (' content ', ' index ', $default _style);}So far, it's basically set up. When running the index.php file in Phpcms, the synchronization of the mobile phone and the PC-side database is achieved based on whether different templates are
This article is mainly to share with you how PHP write client scan qr code login PC backend function, I am also the first time to write this function, under Bo main blog inspired by the demo machine to complete this function, I want to re-summarize this code, in case forget.
HTML page
JS Page
$.ajax ({type: "GET", url: "er/qrcodelogin/getqruuid.php", data: {}, Success: function (Result) {Co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.